#!/usr/bin/python
# coding=utf-8

"""
数据分析服务器程序入口
"""

import os
import sys
curdir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(curdir)
from Flask import WebMain


# 开始数据分析
WebMain.setContext(doctor)

# gunicorn -w 4 -b 127.0.0.1:8000 StartServer:dataDoctorApp
dataDoctorApp = WebMain.app


if __name__ == "__main__":
    if (len(sys.argv) >= 2):
        argv1 = int(sys.argv[1])
    else:
        argv1 = int(0)


    dataDoctorApp.run()
